package com.qidian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.Date;

import com.qidian.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author qidian
 * @since 2020-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Photo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 照片名字
     */
    private String name;

    /**
     * 照片的类型关联类型表
     */
    private Integer type;

    /**
     * 照片的路径发送给前端显示
     */
    private String address;

    /**
     * 照片的优先显示顺序
     */
    private Integer priority;

    /**
     * 照片的上传时间
     */
    private Date time;

    /**
     * 上传照片的用户的id
     */
    private Integer uid;

    /**
     * 代表哪届的
     */
    private Integer period;


}
